﻿using System;

namespace PNTVM_API
{
    struct LInt
    {
        public LInt(long[] valuel)
        {
            Valuel = valuel;
            Value = 0;
            return;
        }

        public LInt(long value)
        {
            Valuel = new long[0] { };
            Value = value;
            return;
        }

        public LInt(long[] valuel, long value)
        {
            Value = value;
            Valuel = valuel;
            return;
        }

        public static long operator+(LInt ints, long value)
        {
            ints.Value = +value;
            if(ints.Value == 0)
            {
                return EOF;
            }
            else
            {
                return ints.Value;
            }
        }

        public static long EOF = -1;

        public const long Maxvalue = long.MaxValue;
        public const long Minvalue = long.MinValue;
        long Value;
        long[] Valuel;

        public static LInt ToLInt(string values)
        {
            LInt lint = new LInt(new long[0]{ },int.Parse(values));
            return lint;
        }

        public static Int64 ToInt64() => Value;
    }
}